package sys.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import sys.entity.MenuEntity;


@Mapper
@Repository
public interface MenuDao extends BaseDao<MenuEntity> {
    @Select("select r.id from tb_role r,tb_user u where u.role_id=r.id and u.id=#{id}")
    Integer selectRole(Integer id);
    @Select("select menuId from tb_menu_role where roleid=#{roleId}")
    Integer[] getMenuByUserId(Integer roleId);
}
